package com.fegin.api.hystrix;

import com.fegin.api.MyService;
import com.fegin.api.service.Firend;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author:RenPu
 * @Date: 2020/8/29 14:00
 * @Version: 1.0
 * @description:
 */
@Slf4j
@Component
public class FallBack implements MyService {

    @Override
    public String error() {
        return "我是害群之马";
    }

    @Override
    public String eurekaClientTest(String test) {
        return null;
    }

    @Override
    public Firend testPostMethond(Firend firend) {
        return null;
    }

    @Override
    public String testPostMethond(List<String> stringList) {
        return null;
    }

    @Override
    public String retry(int timeout) {
        return "YOU are late !!!!!!";
    }


}
